import { ElMessage, ElMessageBox, ElLoading, ElNotification } from 'element-plus';

/** 挂载ElementPlus组件的方法至window, 以便在路由钩子函数和请求函数里面调用 */
export function registerNaiveTools() {
    window.$loading = ElLoading;
    window.$messageBox = ElMessageBox;
    window.$message = ElMessage;
    window.$notification = ElNotification;
}
